
import os
from PIL import Image

if __name__ == '__main__':
    path ='./input'
    for file in os.listdir(path):
        im = Image.open(os.path.join(path,file))
        im = im.resize((224,224))
        im.save(os.path.join(path,file))